-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: impl the new Agent extend http.Agent #69
Conversation
This is a BREAKING change. Don't use patch mode anymore. Improve code coverage to 100%.
Codecov Report
@@ Coverage Diff @@
## master #69 +/- ##
========================================
+ Coverage 91.51% 100% +8.48%
========================================
Files 4 4
Lines 283 176 -107
========================================
- Hits 259 176 -83
+ Misses 24 0 -24
Continue to review full report at Codecov.
|
} | ||
|
||
[INIT_SOCKET](socket, options) { | ||
// bugfix here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
又可以修复 node 的 bug 了。
https on node 8, 10 won't set agent.options.timeout by default
1748b6d
to
c7b1358
Compare
I will merge today and use on npm.taobao.org for a week stable tests. |
if (options.timeout === undefined) { | ||
options.timeout = options.freeSocketKeepAliveTimeout * 2; | ||
options.timeout = options.freeSocketTimeout * 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
options.timeout = Math.max(options.freeSocketTimeout * 2, 30000);
if (options.timeout === undefined) { | ||
options.timeout = options.freeSocketKeepAliveTimeout * 2; | ||
options.timeout = options.freeSocketTimeout * 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
options.timeout = Math.max(options.freeSocketTimeout * 2, 30000);
if (options.timeout === undefined) { | ||
options.timeout = options.freeSocketKeepAliveTimeout * 2; | ||
options.timeout = options.freeSocketTimeout * 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
options.timeout = Math.max(options.freeSocketTimeout * 2, 30000);
if (options.timeout === undefined) { | ||
options.timeout = options.freeSocketKeepAliveTimeout * 2; | ||
options.timeout = options.freeSocketTimeout * 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
options.timeout = Math.max(options.freeSocketTimeout * 2, 30000);
if (options.timeout === undefined) { | ||
options.timeout = options.freeSocketKeepAliveTimeout * 2; | ||
options.timeout = options.freeSocketTimeout * 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
options.timeout = Math.max(options.freeSocketTimeout * 2, 30000);
if (options.timeout === undefined) { | ||
options.timeout = options.freeSocketKeepAliveTimeout * 2; | ||
options.timeout = options.freeSocketTimeout * 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
options.timeout = Math.max(options.freeSocketTimeout * 2, 30000);
if (options.timeout === undefined) { | ||
options.timeout = options.freeSocketKeepAliveTimeout * 2; | ||
options.timeout = options.freeSocketTimeout * 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
options.timeout = Math.max(options.freeSocketTimeout * 2, 30000);
if (options.timeout === undefined) { | ||
options.timeout = options.freeSocketKeepAliveTimeout * 2; | ||
options.timeout = options.freeSocketTimeout * 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
options.timeout = Math.max(options.freeSocketTimeout * 2, 30000);
竟然合并了才看的评论,我再提交一下。 |
4.0.0 |
白天评论发不出来.. |
What is the breaking change introduced in this PR? |
This is a BREAKING change.
Don't use patch mode anymore.
Improve code coverage to 100%.